package en.edu.scau.cmi.zhanzhiyong.carpter06;

class A{
	float compute(float x,float y) {
		return x+y;
	}
	
	public int g(int x,int y) {
		return x+y;
	}
}

class B extends A{
	float compute(float x,float y,double z) {
		return x*y;
	}
}

public class Example6_3 {
	
	public static void main(String args[]) {
		B b =new B();
		
		double result;
		
		result = b.compute(12, 5);
		System.out.println(result);
		result = b.compute(12, 5);
		System.out.println(result);
		result = b.g(12, 5);
		System.out.println(result);
	}
}
